package com.mankind.ssm.service;

import com.mankind.ssm.common.Page;
import com.mankind.ssm.pojo.Permission;

import java.util.List;

/**
 * Created by Mankind on 2017/7/21.
 */
public interface PermissionService {
    public List<Permission> selectAllPermission();
    public Integer getTotalNumber();
    public Integer getTotalNumber(String text);
    public Page<Permission> getRoleByPage(int pageSize, int currentPage);
    public Page<Permission> fuzzyQueryByPage(int currentPage, int pageSize, String text);
    public Permission getPermissionById(Integer id);
    public void insertPermission(Permission permission);
    public void deleteByPermissionId(Integer permissionId);
    public void updatePermission(Permission permission);
}
